package com.wobito.pojo.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author Wangbaba
 * @Date 2024/7/1 10:18
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_book")
public class Book {

    @TableId(value = "id")
    private Long id;

    @TableField(value = "lat_id")
    private Long latId;

    @TableField(value = "name")
    private String name;

    @TableField(value = "rfid")
    private String rfid;

    @TableField(value = "author")
    private String author;

    @TableField(value = "state")
    private Integer state;

    @TableField(value = "search_num")
    private Long searchNum;

    @TableField(value = "borrow_num")
    private Long borrowNum;

    @TableField(value = "remark")
    private String remark;

    @TableField(value = "is_deleted")
    private Integer isDeleted;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(value = "borrow_time")
    private Date borrowTime;

    public Book(Long id, Integer isDeleted) {
        this.id = id;
        this.isDeleted = isDeleted;
    }
}
